package com.nulgame.bukkit.plugin.messagebuilder;

import com.nulgame.bukkit.plugin.responsebuilder.AntiChatOverFlowResponseBuilder;

import junit.framework.TestCase;

public class AntiChatOverFlowResponseBuilderTestCase extends TestCase {
	public void testToResponse(){
		AntiChatOverFlowResponseBuilder builder = new AntiChatOverFlowResponseBuilder("%PlayerName%, do not send two messages in %InMillisTime%ms", "chicanh", "chat ne", 1000L);
		assertEquals("chicanh, do not send two messages in 1000ms", builder.toResponse());
		builder = new AntiChatOverFlowResponseBuilder(null, "chicanh", "chat ne", 1000L);
		assertNull(null, builder.toResponse());
	}
}
